package com.hoas.quickstart.threads.chapter03.chapter03_1_12;

import java.io.PipedInputStream;

public class ThreadRead extends Thread {

    private ReadData read;
    private PipedInputStream input;

    public ThreadRead(ReadData read, PipedInputStream input) {
        this.read = read;
        this.input = input;
    }

    @Override
    public void run() {
        read.readMethod( input );
    }
}
